package com.hzy.oms.service;

import com.hzy.oms.domain.Aftersale;
import com.hzy.oms.domain.vo.AftersaleVo;
import com.hzy.oms.domain.bo.AftersaleBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 订单售后Service接口
 *
 * @author zengxin
 * @date 2023-10-18
 */
public interface IAftersaleService {

    /**
     * 查询订单售后
     */
    AftersaleVo queryById(Long id);

    /**
     * 查询订单售后列表
     */
    TableDataInfo<AftersaleVo> queryPageList(AftersaleBo bo, PageQuery pageQuery);

    /**
     * 查询订单售后列表
     */
    List<AftersaleVo> queryList(AftersaleBo bo);

    /**
     * 新增订单售后
     */
    Boolean insertByBo(AftersaleBo bo);

    /**
     * 修改订单售后
     */
    Boolean updateByBo(AftersaleBo bo);

    /**
     * 校验并批量删除订单售后信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    String applyRefund(AftersaleBo bo);

    String cancelRefund(Long orderId, Long memberId);

    AftersaleVo refundOrderDetail(Long orderId, Long memberId);
}
